define(function(){
    return function(res){
        let str = "";
        res.forEach(val=>{
            return str+=`<div class="mes" index="${val.goodsId}">
                <a href="./spxq.html?id=${val.goodsId}">
                    <img src="${val.proImg}" alt="">
                    <h4>￥${val.size_price[0].price}</h4>
                    <p>${val.proName}</p>
                    <span>爆款</span>
                </a>
            </div>`
            
        })
        
        
        

    }
        
})